const {
  override, 
  addLessLoader,
  fixBabelImports,
  addDecoratorsLegacy
} = require('customize-cra');

const modifyVars = require('./lessVars');

module.exports=override(
  addLessLoader({
      javascriptEnabled:true,
      modifyVars,                 //利用less-loader的modifyVars方法来配置主题
  }),
  fixBabelImports('import',{
      libraryName:'antd',
      libraryDirectory:'es',
      style:true,
  }),
  addDecoratorsLegacy()
);